package algo

import (
	"fmt"
	"testing"
)

func TestArr2(t *testing.T) {
	n, m := 10, 20
	matrix(n, m)
}
func matrix(n, m int) [][]int {
	matrix := make([][]int, n)
	if matrix == nil || n > 90 || m > 466 {
		fmt.Println("the matrix is not right")
	}
	for i := 0; i < n; i++ {
		// make使用类型的零值初始化
		matrix[i] = make([]int, m)
	}
	matrix[0][0] = 12
	fmt.Println(matrix[0][0])
	return matrix
}
